<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>网页无法打开</title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			.text {
				position: absolute;
				left: 0;
				top: 40%;
				text-align: center;
				display: block;
				background-color: #fff;
				border: 0;
				color: #999999;
				height: 40px;
				width: 100%;
			}
		</style>
	</head>
	<body>
		<div class="text" onClick="page">网络连接失败 点击重新加载</div>
		<!-- uni 的 SDK -->
		<script type="text/javascript">
			
			var url,href;
			if(window.plus){
				plusReady();
			}else{
				document.addEventListener('plusready', plusReady, false);
			}
			document.addEventListener("error",function(e){ 
			    url = e.url;  // 错误页面的url地址  
			    href = e.href; // 错误页面的完整路径（包括完整的协议头）   
				console.log(url, href);
			},false);
			
			function plusReady() {
				// plus.runtime.openWeb(href);
			}
		</script>
	</body>
</html>
